package org.netEase.controller;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.netEase.dao.shopCardDao;
import org.netEase.dao.impl.shopCardDaoImpl;
import org.netEase.entity.shoppingCard;

import com.alibaba.fastjson.JSON;
@WebServlet(urlPatterns= {"/shoppingcarts.shtml"})
public class shoppingCart2 extends HttpServlet {
	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
	/*	shopCardDao shopCardDao = new shopCardDaoImpl();
		int hid = 0;
		List<shoppingCard> shoppingCards =shopCardDao.getlist(hid);
		String shoppingCardss =JSON.toJSONString(shoppingCards);
		response.setContentType("application/json;charset=utf-8");
		response.getWriter().write(shoppingCardss);*/
	}

	@Override
	protected void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		this.doGet(request, response);
	}
}
